import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MyExecutor {
 
    public static void main(String[] args) throws Exception{
        Class.forName("java.util.HashMap");
        try {
            Thread.sleep(15000);//留点时间连接jconsole
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        ExecutorService executorService = Executors.newFixedThreadPool(1);
        for (int i = 0; i < 10; i++) {
            executorService.execute(new MyRunnable());
        }
    }
}